import 'package:fish_redux/fish_redux.dart';

enum PayTeacherListAction {
  onLoad,
  loaded,
  loading,
  listResult,
  onReload,
}

class PayTeacherListActionCreator {
  static Action onLoad() {
    return Action(PayTeacherListAction.onLoad);
  }

  static Action loading() {
    return Action(PayTeacherListAction.loading);
  }

  static Action loaded() {
    return Action(PayTeacherListAction.loaded);
  }

  static Action listResult(List items, var pageTotal, var pageIndex) {
    return Action(PayTeacherListAction.listResult, payload: {
      'items': items,
      "pageTotal": pageTotal,
      "pageIndex": pageIndex
    });
  }

  static Action onReload(callback) {
    return Action(PayTeacherListAction.onReload, payload: callback);
  }
}
